﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiZe.education.Model
{
    public class StudentModel : ModelBase
    {
        public int id { get; set; }
        public string StuName { get; set; }
        public string StrStuSex { get; set; }

        private int stuSex;
        public int StuSex
        {
            get { return stuSex; }
            set
            {
                stuSex = value;
                StrStuSex = value == 1 ? "男" : "女";
            }
        }
        public CommonModel ClassModel { get; set; } = new CommonModel();
        public string ClassId { get; set; }
        public int SelectedIndex { get; set; }

        public string StuClass { get; set; }

        public string student_no { get; set; }

        private int stuStatus;
        public string studentSex { get; set; }
        public int StuStatus
        {
            get { return stuStatus; }
            set
            {
                stuStatus = value;
                StrStuStatus = stuStatus == 1 ? "在校" : "毕业";
            }
        }

        public string StrStuStatus { get; set; }
        public string StrStuStatus2 { get; set; }
        public string ParentName { get; set; }
        public string ParentMobile { get; set; }


    }

    //重置密码
    public class ReqStudentModel : ModelBase
    {
        public int code { get; set; }
        public string msg { get; set; }
        public string time { get; set; }
        public string data { get; set; }
    }
    public class ReqDownStudentModel
    {
        public int code { get; set; }
        public string msg { get; set; }
        public string time { get; set; }
        public string data { get; set; }
    }

    public class ReqDelStudentModel : ModelBase
    {
        public string id { get; set; }
        public string token { get; set; }

    }



    public class ReqExportModel : ModelBase
    {
        public string ids { get; set; }
        public string token { get; set; }

    }



    public class ReqImportModel : ModelBase
    {
        public string file { get; set; }
        public string token { get; set; }

    }

    public class ReqUploadModel : ModelBase
    {

        //public string file { get; set; }
        public string token { get; set; }

    }

    public class userauthModel: ModelBase
    {
        public string token { get; set; }
    }

    public class userauthRetModel : ModelBase
    {
        public string is_course { get; set; }
        public string is_resource { get; set; }
        public string is_yuncource { get; set; }
        public string is_peixun { get; set; }
        public string jump_path { get; set; }
    }

    public class ResUploadModel : ModelBase
    {

        public string url { get; set; }
        public string size { get; set; }
        public string type { get; set; }
        public string name { get; set; }
        public string attachment_id { get; set; }

    }

    public class ReqDownModel : ModelBase
    {

        public string token { get; set; }

    }




    public class ReqStudentPamrm : ModelBase
    {
        public string token { get; set; }
        public int page { get; set; }
        public int limit { get; set; }
        public string keyword { get; set; }
        public int grades_id { get; set; }

    }
    //重置密码
    public class ReqStudentMain
    {
        public int code { get; set; }
        public string msg { get; set; }
        public string time { get; set; }
        public ReqStudentList data { get; set; }
    }

    public class ReqStudentList
    {
        public int total { get; set; }
        public string per_page { get; set; }
        public int current_page { get; set; }
        public int last_page { get; set; }

        public List<ReqStudent> data { get; set; }
    }
    public class ReqGradesList : ModelBase
    {

        public int class_id { get; set; }
        public string grade_text { get; set; }


    }
    public class ReqGradesListDetail
    {

        public int id { get; set; }
        public string name { get; set; }
        public string level { get; set; }
        public int pid { get; set; }

        public string status { get; set; }
        public int weigh { get; set; }
        public int createtime { get; set; }
        public int class_sort { get; set; }
        public int use_name { get; set; }


    }
    public class ReqStudent
    {
        public int id { get; set; }
        public string name { get; set; }
        public string grades_id { get; set; }
        public string sex { get; set; }

        public string student_no { get; set; }

        public string status { get; set; }

        public string parent_phone { get; set; }

        public string parent_name { get; set; }

        public int user_id { get; set; }

        public long createtime { get; set; }

        public long updatetime { get; set; }


    }

    public class editStudentModel

    {
        public int id { get; set; }
        public string token { get; set; }
        public string name { get; set; }
        public int grades_id { get; set; }
        public string student_no { get; set; }
        public int sex { get; set; }

        public int status { get; set; }

        public string parent_phone { get; set; }

        public string parent_name { get; set; }




    }
    public class AddStudentModel

    {

        public string token { get; set; }
        public string name { get; set; }
        public int grades_id { get; set; }
        public string student_no { get; set; }
        public int sex { get; set; }

        public int status { get; set; }

        public string parent_phone { get; set; }

        public string parent_name { get; set; }




    }

    //public class ResUploadModel : ModelBase
    //{
    //    public string url { get; set; }
    //    public string size { get; set; }
    //    public string type { get; set; }
    //    public string attachment_id { get; set; }
    //}



}
